﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace lcs.Web.monthsked
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int mid=(Convert.ToInt32(strid));
					ShowInfo(mid);
				}
			}
		}
		
	private void ShowInfo(int mid)
	{
		lcs.BLL.monthsked bll=new lcs.BLL.monthsked();
		lcs.Model.monthsked model=bll.GetModel(mid);
		this.lblmid.Text=model.mid.ToString();
		this.lblspotunit.Text=model.spotunit;
		this.lblspottype.Text=model.spottype;
		this.lblspotnum.Text=model.spotnum.ToString();
		this.lblspotcontent.Text=model.spotcontent;
		this.lblspotopinion.Text=model.spotopinion;
		this.lblplandate.Text=model.plandate.ToString();
		this.lbluid.Text=model.uid.ToString();
		this.lblqresult.Text=model.qresult;
		this.lblquestion.Text=model.question;
		this.lblmonthsupplyid.Text=model.monthsupplyid.ToString();

	}


    }
}
